<template>
  <div>
    <van-search
      v-model="title"
      shape="round"
      background="#4fc08d"
      placeholder="请输入搜索关键词"
      @click="onSearch"
    />
  </div>
</template>

<script setup>
import {ref}from "vue"
import { useRoute, useRouter } from "vue-router";

const router = useRouter();
const route = useRoute();
const title=ref('')
const onSearch = () => {
  router.push({ name: "search", params: {} });
};
</script>

<style lang="scss" scoped></style>
